package
{
//	import com.demonsters.debugger.MonsterDebugger;
	
	import flash.display.Sprite;
	
	import model.user.User;

	/**
	 * 调试
	 */
	public class Debug
	{
		public function Debug()
		{
			
		}
		
		public static  function set isDebug(value:Boolean):void
		{
//			MonsterDebugger.enabled=value;
		}
		
		public static  function get isDebug():Boolean
		{
			return true;
//			return MonsterDebugger.enabled;
		}
		
		public static function init(sprite:Sprite,address:String="127.0.0.1"):void
		{
//			MonsterDebugger.initialize(sprite,address);
		}
		
		public static function traceObj(caller:*, object:*, person:String="", label:String="", color:uint=0, depth:int=5):void
		{
			trace(caller, object, person, label);
//			MonsterDebugger.trace(caller,object,person,label,color,depth);
		}
		
		public static function traceMe(object:*,label:String=""):void
		{
			trace( object, label);

//			MonsterDebugger.trace(null,object,User.userName,label,myColor);
		}
		
		public static function log(...par):void
		{
//			MonsterDebugger.log(par);
		}
		
		public static var myColor:uint=0xf00000+0xfff*Math.random();
	}
}